import request from '../../../api/index';

/**
 * 认证服务API
 */
class HAuthLogin {
  // 登录
  static userLogin<T>(desc: string, data: any) {
    return request.post<T>('/auth/login', data)
  }

  /**
   * 查询租户列表
   * @param desc 
   * @param data 
   * @returns 
   */
  static queryTenants<T>(desc: string) {
    return request.get<T>('/user/tenants')
  }
};

export { HAuthLogin };